package a.b;

import org.junit.jupiter.api.Test;

import java.net.URLDecoder;
import java.net.URLEncoder;

public class c {
    public static void main(String[] args) {

        String encode = URLEncoder.encode("张三");
        System.out.println(encode);

        String decode = URLDecoder.decode(encode);
        System.out.println(decode);
    }
}
